﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListFormWebPartUserControl.ascx.cs"
    Inherits="ServBus.ListForm2010.ListFormWebPart.ListFormWebPartUserControl" %>
<script type="text/javascript">
    function saveFormPart() {
        var id = '<%= container.ClientID %>';
        window.frames[id].saveFormPart_Inner();
    }
    function deleteFormPart() {
        var id = '<%= container.ClientID %>';
        window.frames[id].deleteFormPart_Inner();
    }
    function getXdocHeight() {
        var id = '<%= container.ClientID %>';
        return window.frames[id].getXdocHeight_Inner();
    }
    function getXdocWidth() {
        var id = '<%= container.ClientID %>';
        return window.frames[id].getXdocWidth_Inner();
    }
    document.body.onload = function () {
        if (typeof (_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper(); doSize();
    }

    function doSize() {

        var workspace = document.getElementById("workspace");
        workspace.style.width = getXdocWidth() + "px";
        var heightValue = getXdocHeight();
        workspace.style.height = heightValue + "px";
    }
    
    
</script>
<div id="workspace" style="overflow: hidden; position: relative;">
    <iframe id="container" runat="server" border="0" frameborder="0" marginwidth="0"
        marginheight="0" style="height: 100%; width: 100%; margin: 0px; padding: 0px;
        overflow: hidden"></iframe>

</div>
<asp:Label ID="exView" runat="server" EnableViewState="False" Visible="true"></asp:Label>